package cn.school.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @author oldliu
 * @since 1.0
 */
// s_student表对应
public class Student implements Serializable {
    private long stuno,gradeid;
    private String sname,sex,qq,wechat,telephone,address,fromcity;
    private String email,pass,idcardpic;
    private Date birthday,enterdate;

    //
    private String gname;//年级名称
    //
    public Student() {
    }

    public Student(long stuno, long gradeid, String sname, String sex, String qq, String wechat, String telephone, String address, String fromcity, String email, String pass, String idcardpic, Date birthday, Date enterdate) {
        this.stuno = stuno;
        this.gradeid = gradeid;
        this.sname = sname;
        this.sex = sex;
        this.qq = qq;
        this.wechat = wechat;
        this.telephone = telephone;
        this.address = address;
        this.fromcity = fromcity;
        this.email = email;
        this.pass = pass;
        this.idcardpic = idcardpic;
        this.birthday = birthday;
        this.enterdate = enterdate;
    }

    public long getStuno() {
        return stuno;
    }

    public void setStuno(long stuno) {
        this.stuno = stuno;
    }

    public long getGradeid() {
        return gradeid;
    }

    public void setGradeid(long gradeid) {
        this.gradeid = gradeid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getFromcity() {
        return fromcity;
    }

    public void setFromcity(String fromcity) {
        this.fromcity = fromcity;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getIdcardpic() {
        return idcardpic;
    }

    public void setIdcardpic(String idcardpic) {
        this.idcardpic = idcardpic;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Date getEnterdate() {
        return enterdate;
    }

    public void setEnterdate(Date enterdate) {
        this.enterdate = enterdate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return stuno == student.stuno;
    }

    @Override
    public int hashCode() {
        return Objects.hash(stuno);
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuno=" + stuno +
                ", gradeid=" + gradeid +
                ", sname='" + sname + '\'' +
                ", sex='" + sex + '\'' +
                ", qq='" + qq + '\'' +
                ", wechat='" + wechat + '\'' +
                ", telephone='" + telephone + '\'' +
                ", address='" + address + '\'' +
                ", fromcity='" + fromcity + '\'' +
                ", email='" + email + '\'' +
                ", pass='" + pass + '\'' +
                ", idcardpic='" + idcardpic + '\'' +
                ", birthday=" + birthday +
                ", enterdate=" + enterdate +
                '}';
    }
}
